<%@ page contentType="text/html;charset=utf-8" %>
<%@ page import="ut.data.User" %>
<%@ page import="ut.data.Profile" %>
<%
	User user = (User)session.getAttribute("user");
	String eventClick = (user == null) 
		? "Message.show('msg-access-denied', 400, '權限不足', '請先登入以建立案件', Message.BUTTON_OK);"
		: user.verify == 0
			? "Message.show('msg-access-denied', 400, '權限不足', '請先通過 E-Mail 驗證以建立案件', Message.BUTTON_OK);"
			: "document.location='/[TASK_TYPE]/[TASK_TYPE]-create.jsp'";
%>

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="Description" content="UT終極一翻，在本站建立翻譯案件，協助案主找到適合的專業譯者。" />
	<title>UT終極一翻！ | 選擇發案類型</title>
	<link rel="stylesheet" type="text/css" href="/style.css" media="all" />
	<link rel="stylesheet" type="text/css" href="/css/task-select.css" media="all" />
	<script type="text/javascript" src="/js/Utility.js"></script>
	<script type="text/javascript" src="/js/Message.js"></script>
	<script type="text/javascript" src="/js/Ajax.js"></script>
	<script type="text/javascript" src="/js/Button.js"></script>
	<script type="text/javascript" src="/js/Account.js"></script>
	<script type="text/javascript" src="script.js"></script>
</head>
<body onload="init();">
<%@ include file="/include/banner.jsp" %>
	<div class="content">
		<div class="title">選擇發案類型</div>
		<div class="task-element task-left block">
			<button class="button large blue task"
					onmousedown="this.style.borderStyle='inset';"
					onmouseup="this.style.borderStyle='outset';"
					onmouseout="this.style.borderStyle='outset';"
					onclick="<%= eventClick.replace("[TASK_TYPE]", "free-task") %>">
				建立免費案件
			</button>
			<br/>
			<img src="/image/free-task-create.png" />
		</div>
		<div class="task-element task-right block">
			<button class="button large green task"
					onmousedown="this.style.borderStyle='inset';"
					onmouseup="this.style.borderStyle='outset';"
					onmouseout="this.style.borderStyle='outset';"
					onclick="<%= eventClick.replace("[TASK_TYPE]", "task") %>">
				建立付費案件
			</button>
			<br/>
			<a target="_blank" href="/image/task-flow.png" title="點擊查看詳細流程"><img title="點擊查看詳細流程" border="0" src="/image/task-create.png" /></a>
			<div style="margin-top:20px;">
				<a target="_blank" href="/image/task-flow.png" title="點擊查看詳細流程">
					看詳細流程圖
				</a>
			</div>
		</div>
		<div style="clear:both"></div>
<%@ include file="/include/foot.jsp" %>
	</div>
</body>
</html>